//
//  NodeTask.m
//  RunLoopDemo
//
//  Created by zhangjikuan on 2020/11/9.
//  Copyright © 2020 hsgd. All rights reserved.
//

#import "NodeTask.h"
#import "Node.h"
#import "NodeTest.h"

@implementation NodeTask

- (void)execute {
    Node *headNode = [[Node alloc] init];
    headNode.value = 100;
    Node *tmpNode = headNode;
    
    for (int i = 0; i < 10; i ++) {
        
        Node *node = [[Node alloc] init];
        node.value = i;
        tmpNode.next = node;
        tmpNode = node;
    }
    
    [NodeTest reversalNode:headNode];
    
}
@end
